package site.marqstree.latte.ui.banner;

import android.view.View;

import com.bigkoo.convenientbanner.holder.CBViewHolderCreator;
import com.bigkoo.convenientbanner.holder.Holder;

import site.marqstree.latte.ui.R;

/*
 * 项目名: EleCommerce
 * 包名: site.marqstree.latte.ui.banner
 * 文件名: HolderCreator
 * 创建者: marqstree
 * 创建时间: 2020/1/26 18:44
 * 描述: TODO
 */
public class HolderCreator implements CBViewHolderCreator {

    //创建ImageHolder
    @Override
    public Holder createHolder(View itemView) {
        return new BannerHolder(itemView);
    }

    //获取轮播图布局ID
    @Override
    public int getLayoutId() {
        return R.layout.item_banner;
    }
}
